﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class TempInputLua : MonoBehaviour
{
    public InputField LuaInput;
    public Button ExecuteBtn;
	// Use this for initialization
	void Start () {
        ExecuteBtn.onClick.AddListener(ExecuteLua);

    }

    [ContextMenu("Execute")]
    void ExecuteLua()
    {
        LuaService.Instance.LuaEnv.DoString(LuaInput.text);
    }
}
